import AudioMgr, { playType } from './libs/audio/AudioMgr';
import DataMgr from './libs/DataMgr';
import StorageMgr from './libs/StorageMgr';
import TipsMgr from './libs/TipsMgr';

const { ccclass, property } = cc._decorator;

@ccclass
export default class Index extends cc.Component {
    //window.JSZip=require('src/assets/script/jszip.js');
    @property(cc.Label)
    label: cc.Label = null;

    onLoad() {
        this.label.string = 'hello1';
    }
    onEnable() {}

    /**
     * 切换场景
     * @param e 事件发起者
     */
    public cutScene(e, data) {
        AudioMgr.play(playType.playEffect, 'button');
        // TipsMgr.show('正在跳转场景', 1)
        cc.director.loadScene('game');
    }
}
